import Layout from '@/layout'
export default [
  {
    path: '/departments',
    name: 'departments',
    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/departments/index.vue'),
        // meta: { title: '组织架构', icon: 'tree' }
        meta: { title: 'departments', icon: 'tree' }
      }
    ]
  },

  {
    path: '/employees',
    name: 'employees',
    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/employees/index.vue'),
        // meta: { title: '员工', icon: 'people' }
        meta: { title: 'employees', icon: 'people' }
      },
      {
        path: 'import',
        component: () => import('@/views/employees/components/import.vue'),
        hidden: true
      },
      {
        path: 'details/:id',
        component: () => import('@/views/employees/details.vue'),
        hidden: true
      }
    ]
  },
  {
    path: '/setting',
    name: 'setting',
    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/setting/index.vue'),
        // meta: { title: '公司设置', icon: 'setting' }
        meta: { title: 'setting', icon: 'setting' }
      }
    ]
  },
  {
    path: '/salarys',
    name: 'salarys',
    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/salarys/index.vue'),
        // meta: { title: '工资', icon: 'money' }
        meta: { title: 'salarys', icon: 'money' }
      }
    ]
  },
  {
    path: '/social',
    name: 'social',
    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/social/index.vue'),
        // meta: { title: '社保', icon: 'table' }
        meta: { title: 'social', icon: 'table' }
      }
    ]
  },
  {
    path: '/attendances',
    name: 'attendances',
    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/attendances/index.vue'),
        // meta: { title: '考勤', icon: 'skill' }
        meta: { title: 'attendances', icon: 'skill' }
      }
    ]
  },
  {
    path: '/approvals',
    name: 'approvals',
    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/approvals/index.vue'),
        // meta: { title: '审批', icon: 'tree-table' }
        meta: { title: 'approvals', icon: 'tree-table' }
      }
    ]
  },
  {
    path: '/permission',
    name: 'permission',
    component: Layout,
    children: [
      {
        path: '',
        component: () => import('@/views/permission/index.vue'),
        // meta: { title: '权限管理', icon: 'lock' }
        meta: { title: 'permissions', icon: 'lock' }
      }
    ]
  }
]
